<!--资源确认-->
<template>
  <t-collapse title="项目验收信息">
    <TForm ref="enteringForm" :form="formData" :form-options="formOptions" :softDev="getSoftDev" :firstAcceptTime="firstAcceptTime"/>
  </t-collapse>
</template>
<script>
import TForm from '../form/index.vue'
import accButton from '@/views/acceptance/components/accButton.vue'
import { Mixins } from '@/views/acceptance/components/minix'
import { getStartAcceptTime} from "@/api/acceptanceManagement/acceptanceMange";
export default {
  components: {
    accButton,
    TForm
  },
  mixins: [Mixins],
  data() {
    return {
      formList: ['realStartTime', 'realEndTime', 'resourceInTime', 'resourceConfirmTime', 'endInternalAcceptDate', 'jiaofuApplicationDate'],
      firstAcceptTime:"",
    }
  },
  computed: {
    // 软件开发
    getSoftDev() {
      return this.newPrjDetail.manageMode === '05'
    },
  },
  created(){
    this.formList = this.getSoftDev?['endInternalAcceptDate']:this.formList
    // 软件开发、服务成本
    if(this.getSoftDev){
      this.getStartTime()
    }
  },
  methods:{
    async getStartTime() {
      const {code,data} = await getStartAcceptTime({ prjId: this.prjId })
      if(+code===200){
        this.firstAcceptTime=data
      }
    },
  }
}
</script>
<style scoped lang='scss'>
</style>
